<div style="font-size:10pt; padding: 10px;" class="color">
    <a href="{url link='public.groups'}">{language text="groups"}</a>
    &gt;&gt;
    <a href="{url link='public.groups.view' id=$aGroupData.id}">{$aGroupData.title|process_code|escape:"htmlall"}</a>
    &gt;&gt;
    <a href="{url link='public.groups.forum' id=$aGroupData.id}">{language text="forum_139"}</a>
    &gt;&gt;
    {$aTopic.title|process_code|escape}
</div>
<table style="width: 100%;" cellpadding="4" cellspacing="5">
<tr>
    <td class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
            <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="group_forum"}</td>
            </tr>
        </table>

        <table style="width:100%;" cellpadding="0" cellspacing="0">
        <tr>
        <td style="font-size:10pt;vertical-align:top;" class="color">

        {if $sAction == 'post' OR $sAction == 'edit' OR $sAction == 'topic'}

        {if $sAction=='topic'}
            {include file="$sRootPath/_blocks/editor.html" sFormButton='' sFormUrl=$sUrl sFormText=$sText sFormSubject=$sSubject}
        {elseif $sAction=='edit'}
            {include file="$sRootPath/_blocks/editor.html" sFormButton='' sFormUrl=$sUrl sFormText=$sText sFormSubject=$sSubject}
        {elseif $sAction=='post'}
            {include file="$sRootPath/_blocks/editor.html" sFormButton='' sFormUrl=$sUrl sFormText=$sText sFormSubject=$sSubject}
        {/if}

        {else}
        <div style="padding:5px;font-size:8pt;">

            <table>
            <tr>
                <td class="mainmenu6" onclick="javascript:window.location.href='{url link='public.groups.forum.posts' act=post id=$aTopic.id page=$aPaging.current}'" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';">
                <a href="{url link='public.groups.forum.posts' act='post' id=$aTopic.id page=$aPaging.current}">{language text="post_reply"}</a>
                </td>
            </tr>
            </table>

        </div>
        {/if}

        <br />

            {include file="$sRootPath/_blocks/pager_nav_button.html"}

            <table style="width:100%;" class="forum-1" cellpadding="5" cellspacing="1">
            <tr>
                <td style="font-size:8pt;">
                {str_replace text="`viewing_ifrom_ito_out_of_icnt_posts`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }
                </td>
            </tr>
            </table>
        <!-- List Of Posts -->
        {foreach from=$aPosts item=aItem}
                <a name="r{$aItem.id}"></a>
                <table style="width:100%;" class="forum-2" cellpadding="5" cellspacing="1">
                <tr>
                    <td style="vertical-align:top;font-size:8pt;width:20%;text-align:center;" class="forum-3">

                    <a href="{url link='public.user' name=$aItem.user}">
                        {Account::Avatar sUser=$aItem.user iSize=75 class="pic1" onmouseover="showInfo5('`$aItem.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
                    </a>
                    {if $aItem.memb_image}<div style="padding:5px;">{img src=$aItem.memb_image alt="" style="vertical-align:middle;"}</div>{/if}
					{if !getParam('profile_display_points')}
                    <div style="padding:5px;"><span>{include file="`$sRootPath`/_blocks/stars.html" aUserStarsInfo=$aItem.stars_info}</span></div>
                    {/if}
                     <br /><br /><br />

                    </td><td style="vertical-align:top;font-size:8pt;width:80%;" class="forum-4">

                    <table style="width:100%;" class="forum-2">
                    <tr>
                        <td style="width:50%;font-size:8pt;">

                        {language text="posted_by"}: {$aItem.user} {language text="on"} {$aItem.time|date_format:$sMonthDateFormat}

                        </td><td style="width:50%;font-size:8pt;text-align:right;">
                        {if getUser('user')}
                        <a class="link_action" href="{url link='public.groups.forum.posts' act='post' id=$aTopic.id quote=$aItem.id page=$aPaging.current}">[ {language text="quote"} ]</a>
                        {/if}
                        {if $aItem.owner}
                            <a class="link_action" href="{url link='public.groups.forum.posts' act='edit' post=$aItem.id id=$aTopic.id page=$aPaging.current}">[ {language text="edit"} ]</a>
                        {/if}
                        {if $aItem.owner || isStaff()}
                            <a class="link_action" href="{url link='public.groups.forum.delete' post=$aItem.id id=$aTopic.id}" onclick="if (!sure('')) return false;">[ {language text="delete"} ]</a>
                        {/if}
                        </td>
                    </tr>
                    </table>
					{if $aItem.title}
                    <div style="padding:5px;">
                        <img src="design/pic/spacer.gif" alt="" width="8" height="8" class="sqr" style="vertical-align:middle;" />
                        <span style="vertical-align:middle;">{$aItem.title|process_code|escape}</span>
                    </div>
					{/if}

                    <div style="padding:10px;">
                    {$aItem.text|process_code}
                    </div>

                    {if $aItem.headline != ''}
                    <br /><br /><br /><br /><div style="padding:5px;">-------------------------------------------------------------- <br />{$aItem.headline|process_code}</div>
                    {/if}

                    </td>
                </tr>
                <tr>
                    <td style="vertical-align:top;font-size:7pt;" class="forum-3" colspan="2">
                    <a href="{$sUrl}#top">{language text="back_to_top"}</a>
                    </td>
                </tr>
                </table>
        {/foreach}
        <!-- End List Of Posts -->


            <a name="bottom"></a>

            <table style="width:100%;" class="forum-1" cellpadding="5" cellspacing="1">
            <tr>
                <td style="font-size:8pt;">
                {$iDate|date_format:$sMonthDateFormat}
                </td>
            </tr>
            </table>

            {include file="$sRootPath/_blocks/pager_nav_button.html"}

        <br />

        <div style="padding:5px;font-size:8pt;">

            <table>
            <tr>
                <td class="mainmenu6" onclick="javascript:window.location.href='{url link='public.groups.forum.posts' act=post id=$aTopic.id page=$aPaging.current}'" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';">
                <a href="{url link='public.groups.forum.posts' act='post' id=$aTopic.id page=$aPaging.current}">
                {language text="post_reply"}
                </a>
                </td>
            </tr>
            </table>

        </div>

        </td>
        </tr>
        </table>
    </td>
</tr>
</table>